package com.icss.action.bankmanage;

import com.icss.action.BaseAction;
import com.icss.service.bankmanage.BankManageService;

/**
 * 行名行号管理
 * @author shixiaolong
 * @dateJun 12, 2012
 */
public class BankManageAction extends BaseAction{
	
	BankManageService bankManageService;

	public BankManageService getBankManageService() {
		return bankManageService;
	}

	public void setBankManageService(BankManageService bankManageService) {
		this.bankManageService = bankManageService;
	}
	
	
	public String frame(){
		return "frame";
	}
	
	public String list(){
		request.setAttribute("bankList", bankManageService.getList(request));
		return "list";
	}
	
	public String edit(){
		request.setAttribute("map", bankManageService.getDetail(request));
		return "edit";
	}
	
	public String save(){
		request.setAttribute("result",bankManageService.save(request));
		return "saveResult";
	}
	
	public String delete(){
		this.writeText(bankManageService.delete(request));
		return null;
	}
	
	///////////////////////////////////////以下是支付节点
	public String bankHeadFrame(){
		return "bankHeadFrame";
	}
	
	public String bankHeadList(){
		request.setAttribute("list", bankManageService.getBankHeadList(request));
		return "bankHeadList";
	}
}
